<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view>
			<text class="title">{{ title }}</text>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			title: 'Hello'
		};
	},
	onLoad(options) {
		this.$http.get('/v1/demo').then(res => {
			console.log('%c 🍏 res: ', 'font-size:20px;background-color: #F5CE50;color:#fff;', res); // eslint-disable-line
		}).catch(err => {
			console.log('%c 🥜 err: ', 'font-size:20px;background-color: #33A5FF;color:#fff;', err); // eslint-disable-line
		});
	},
	methods: {}
};
</script>

<style lang="scss" scoped>
.content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.logo {
	height: 200rpx;
	width: 200rpx;
	margin: 200rpx auto 50rpx auto;
}
.text-area {
	display: flex;
	justify-content: center;
}
.title {
	font-size: 36rpx;
	color: #8f8f94;
}
</style>
